package com.senlingspace.payment.douyin.bean.response;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;


/**
 * 商户主动发起退款-抖音响应
 *
 * @author lebronjames
 * @date 2024/08/02
 */
@Data
public class DouyinRefundResponse implements Serializable {

    @JsonProperty("data")
    public ResponseData data;

    @JsonProperty("extra")
    public DouyinCommonResponse.Extra extra;

    @EqualsAndHashCode(callSuper = true)
    @Data
    public static class ResponseData extends DouyinCommonResponse.CommonData  {

        /**
         *抖音开放平台交易系统内部退款单号
         */
        @JsonProperty("refund_id")
        public String refundId;

        /**
         *退款审核的最后期限，13 位 unix 时间戳，精度：毫秒
         * 通常是3天(从退款发起时间开始算)
         */
        @JsonProperty("refund_audit_deadline")
        private Long refundAuditDeadline;
    }

}
